namespace util {
    export interface ResultData {

        status:number,

        msg:string,

        result_data?:any

    }
}


namespace service {

    export class EmpService {

        queryList(param:any):util.ResultData {
            return {
                status: 1,
                msg: "查询成功",
                result_data:[]
            };
        }

        insert(param:any):util.ResultData {
            return {
                status: 1,
                msg: "增加成功"
            };
        }

    }

    export class DeptService {

    }
}

namespace controller {
    export class EmpController {
        
        private service:service.EmpService = new service.EmpService();

        queryList(req:any,res:any) {
            let result:util.ResultData = this.service.queryList(req.body);
            res.json(result);
        }
        

    }

    export class DeptController {
        
    }
}